<?php
namespace Api\Service;

/**
 * 意见/意见
 */
class SuggestService
{   
    /**
     * 用户提交意见/意见
     * @param [type] $user_id [description]
     * @param [type] $content [description]
     */
    public function add($user_id, $content)
    {
        $data = [
            'user_id'  => $user_id,
            'content'  => $content,
            'add_time' => CUR_DATETIME,
        ];
        $res = M('suggest')->add($data);

        return $res;
    }
}
